class FinancialDataException(Exception):
    """财务数据处理异常基类"""
    def __init__(self, message="财务数据处理异常", errors=None):
        super().__init__(message)
        self.errors = errors or []
        self.message = f"{message} [错误详情: {', '.join(self.errors)}]" if self.errors else message

    def __str__(self):
        return self.message

class IndustryDataException(Exception):
    """行业数据异常基类"""
    pass